<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 订单状态数据库迁移
 * Class CreateOrderStatusTable
 */
class CreateOrderStatusTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('orderStatus', function(Blueprint $table)
        {
            $table->increments('id')->comment('订单状态id,这里不做自增');
            $table->string('name', 10)->comment('订单状态名称');
            $table->string('label', 10)->comment('订单状态中文表述');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('orderStatus');
    }

}
